package zuoye.宠物店;

public class Dog extends Animal implements PlayAble, WorkAble{

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMasterPhone() {
        return masterPhone;
    }

    public void setMasterPhone(String masterPhone) {
        this.masterPhone = masterPhone;
    }

    private String name;
    private String masterPhone;

    public Dog(String name, ColorEnum color, String kind, Boolean hair, Boolean jueyu, GenderEnum gender,String masterPhone ) {
        super(color, kind, hair, jueyu, gender);
        this.name = name;
        this.masterPhone = masterPhone;
    }

    public void play(){
        System.out.println("狗爱出去玩");
    }

    @Override
    public void eat(String food) {
        System.out.println("狗爱吃"+food);
    }

    @Override
    public void Work() {
        System.out.println("带狗出去遛弯");
    }
}
